using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Reflection;


namespace VisitWebSite
{
  public static class clsObjFactory
  {

    public static ISettings CreateSettingObj(string strObjSettingsNameSpace, string strObjSettingsClassName)
    {
      return (ISettings)Assembly.Load(strObjSettingsNameSpace).CreateInstance(
          strObjSettingsNameSpace + "." + strObjSettingsClassName);
    }

    public static clsMyBlog CreateMyBlogObj(string strObjMyBlogNameSpace, string strObjMyBlogClassName)
    {
      return (clsMyBlog)Assembly.Load(strObjMyBlogNameSpace).CreateInstance(
          strObjMyBlogNameSpace + "." + strObjMyBlogClassName);
    }

    public static clsTargetBlog CreateTargetBlogObj(string strObjTargetBlogNameSpace, string strObjTargetBlogClassName)
    {


        return (clsTargetBlog)Assembly.Load(strObjTargetBlogNameSpace).CreateInstance(
              strObjTargetBlogNameSpace + "." + strObjTargetBlogClassName);


 
    }
  }
}




 

